package internal

import (
	"os"

	"gitee.com/night-tc/gobige/threads"
	"gitee.com/zhenghexcs/flags"
)

type FlagConfig struct {
	GroupID uint64 `flag:"选择要登录的游戏服务器ID"`
	Url     string `flag:"Login服务器地址"`
}

func init() {
	flags.SetFlagByStruct(Config)
	Thgo = threads.NewThreadGo()
	SvrStop = make(chan os.Signal, 1)
}

var (
	Config = &FlagConfig{
		GroupID: 1,
		Url:     "127.0.0.1:8001",
	}
	Thgo *threads.ThreadGo

	SvrStop chan os.Signal
)
